<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Jedrzej\Pimpable\PimpableTrait;

class SystemRole extends Model
{
    use HasFactory;
    use PimpableTrait;

    public $searchable = [
        'role_name',
        'rules',
        'level',
        'status',
    ];

    public $fillable = [
        'role_name',
        'rules',
        'level',
    ];

    protected $defaultSortCriteria = ['id,desc'];
}
